import { httpInstance } from '@/utils/request'

interface FetchAfterSalesDetailAPIParams {
  id: string
}

interface FetchAfterSalesDetailAPIResData {
  code: number
  data: AfterSalesDetail
  msg: string
  time: string
}

export function fetchAfterSalesDetailAPI(
  params: FetchAfterSalesDetailAPIParams,
  token: string,
) {
  return httpInstance.get<
    FetchAfterSalesDetailAPIResData,
    FetchAfterSalesDetailAPIParams
  >(
    'api/Project_extend/projectAfterSalesInfo',
    { params, headers: { token } },
  )
}
